public class EdgeContainerStubSettings extends StubSettings<EdgeContainerStubSettings>
Settings class to configure an instance of EdgeContainerStub .
The default instance has everything set to sensible defaults:
The default service address (edgecontainer.googleapis.com) and default port (443) are used.
Credentials are acquired automatically through Application Default Credentials.
Retries are configured for idempotent methods but not for non-idempotent methods.
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 getCluster to 30 seconds:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
EdgeContainerStubSettings.Builder edgeContainerSettingsBuilder =
EdgeContainerStubSettings.newBuilder();
edgeContainerSettingsBuilder
.getClusterSettings()
.setRetrySettings(
edgeContainerSettingsBuilder
.getClusterSettings()
.getRetrySettings()
.toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
EdgeContainerStubSettings edgeContainerSettings = edgeContainerSettingsBuilder.build();
Static Methods
public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
defaultCredentialsProviderBuilder()
public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()
Returns a builder for the default credentials for this service.
defaultExecutorProviderBuilder()
public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()
Returns a builder for the default ExecutorProvider for this service.
public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
defaultGrpcTransportProviderBuilder()
public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()
Returns a builder for the default gRPC ChannelProvider for this service.
public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
defaultHttpJsonTransportProviderBuilder()
public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()
Beta
This feature is covered by the Pre-GA Offerings Terms of the Terms of Service. Pre-GA libraries might have limited support, and changes to pre-GA libraries might not be compatible with other pre-GA versions. For more information, see the launch stage descriptions.
Returns a builder for the default REST ChannelProvider for this service.
defaultTransportChannelProvider()
public static TransportChannelProvider defaultTransportChannelProvider()
getDefaultEndpoint()
public static String getDefaultEndpoint()
Obsolete
Use getEndpoint() instead
This feature is stable for usage in this major version, but may be deprecated in a future release.
Returns the default service endpoint.
Returns
Type
Description
String
getDefaultMtlsEndpoint()
public static String getDefaultMtlsEndpoint()
Returns the default mTLS service endpoint.
Returns
Type
Description
String
getDefaultServiceScopes()
public static List<String> getDefaultServiceScopes()
Returns the default service scopes.
newBuilder()
public static EdgeContainerStubSettings.Builder newBuilder()
Returns a new gRPC builder for this class.
newBuilder(ClientContext clientContext)
public static EdgeContainerStubSettings.Builder newBuilder(ClientContext clientContext)
Returns a new builder for this class.
newHttpJsonBuilder()
public static EdgeContainerStubSettings.Builder newHttpJsonBuilder()
Returns a new REST builder for this class.
Constructors
EdgeContainerStubSettings(EdgeContainerStubSettings.Builder settingsBuilder)
protected EdgeContainerStubSettings(EdgeContainerStubSettings.Builder settingsBuilder)
Methods
createClusterOperationSettings()
public OperationCallSettings<CreateClusterRequest,Cluster,OperationMetadata> createClusterOperationSettings()
Returns the object with the settings used for calls to createCluster.
createClusterSettings()
public UnaryCallSettings<CreateClusterRequest,Operation> createClusterSettings()
Returns the object with the settings used for calls to createCluster.
createNodePoolOperationSettings()
public OperationCallSettings<CreateNodePoolRequest,NodePool,OperationMetadata> createNodePoolOperationSettings()
Returns the object with the settings used for calls to createNodePool.
createNodePoolSettings()
public UnaryCallSettings<CreateNodePoolRequest,Operation> createNodePoolSettings()
Returns the object with the settings used for calls to createNodePool.
createStub()
public EdgeContainerStub createStub()
createVpnConnectionOperationSettings()
public OperationCallSettings<CreateVpnConnectionRequest,VpnConnection,OperationMetadata> createVpnConnectionOperationSettings()
Returns the object with the settings used for calls to createVpnConnection.
createVpnConnectionSettings()
public UnaryCallSettings<CreateVpnConnectionRequest,Operation> createVpnConnectionSettings()
Returns the object with the settings used for calls to createVpnConnection.
deleteClusterOperationSettings()
public OperationCallSettings<DeleteClusterRequest,Empty,OperationMetadata> deleteClusterOperationSettings()
Returns the object with the settings used for calls to deleteCluster.
deleteClusterSettings()
public UnaryCallSettings<DeleteClusterRequest,Operation> deleteClusterSettings()
Returns the object with the settings used for calls to deleteCluster.
deleteNodePoolOperationSettings()
public OperationCallSettings<DeleteNodePoolRequest,Empty,OperationMetadata> deleteNodePoolOperationSettings()
Returns the object with the settings used for calls to deleteNodePool.
deleteNodePoolSettings()
public UnaryCallSettings<DeleteNodePoolRequest,Operation> deleteNodePoolSettings()
Returns the object with the settings used for calls to deleteNodePool.
deleteVpnConnectionOperationSettings()
public OperationCallSettings<DeleteVpnConnectionRequest,Empty,OperationMetadata> deleteVpnConnectionOperationSettings()
Returns the object with the settings used for calls to deleteVpnConnection.
deleteVpnConnectionSettings()
public UnaryCallSettings<DeleteVpnConnectionRequest,Operation> deleteVpnConnectionSettings()
Returns the object with the settings used for calls to deleteVpnConnection.
generateAccessTokenSettings()
public UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse> generateAccessTokenSettings()
Returns the object with the settings used for calls to generateAccessToken.
generateOfflineCredentialSettings()
public UnaryCallSettings<GenerateOfflineCredentialRequest,GenerateOfflineCredentialResponse> generateOfflineCredentialSettings()
Returns the object with the settings used for calls to generateOfflineCredential.
getClusterSettings()
public UnaryCallSettings<GetClusterRequest,Cluster> getClusterSettings()
Returns the object with the settings used for calls to getCluster.
getLocationSettings()
public UnaryCallSettings<GetLocationRequest,Location> getLocationSettings()
Returns the object with the settings used for calls to getLocation.
Returns
Type
Description
UnaryCallSettings <com.google.cloud.location.GetLocationRequest ,com.google.cloud.location.Location >
getMachineSettings()
public UnaryCallSettings<GetMachineRequest,Machine> getMachineSettings()
Returns the object with the settings used for calls to getMachine.
getNodePoolSettings()
public UnaryCallSettings<GetNodePoolRequest,NodePool> getNodePoolSettings()
Returns the object with the settings used for calls to getNodePool.
getServerConfigSettings()
public UnaryCallSettings<GetServerConfigRequest,ServerConfig> getServerConfigSettings()
Returns the object with the settings used for calls to getServerConfig.
getServiceName()
public String getServiceName()
Returns the default service name.
Returns
Type
Description
String
Overrides
getVpnConnectionSettings()
public UnaryCallSettings<GetVpnConnectionRequest,VpnConnection> getVpnConnectionSettings()
Returns the object with the settings used for calls to getVpnConnection.
public PagedCallSettings<ListClustersRequest,ListClustersResponse,EdgeContainerClient.ListClustersPagedResponse> listClustersSettings()
Returns the object with the settings used for calls to listClusters.
listLocationsSettings()
public PagedCallSettings<ListLocationsRequest,ListLocationsResponse,EdgeContainerClient.ListLocationsPagedResponse> listLocationsSettings()
Returns the object with the settings used for calls to listLocations.
listMachinesSettings()
public PagedCallSettings<ListMachinesRequest,ListMachinesResponse,EdgeContainerClient.ListMachinesPagedResponse> listMachinesSettings()
Returns the object with the settings used for calls to listMachines.
listNodePoolsSettings()
public PagedCallSettings<ListNodePoolsRequest,ListNodePoolsResponse,EdgeContainerClient.ListNodePoolsPagedResponse> listNodePoolsSettings()
Returns the object with the settings used for calls to listNodePools.
listVpnConnectionsSettings()
public PagedCallSettings<ListVpnConnectionsRequest,ListVpnConnectionsResponse,EdgeContainerClient.ListVpnConnectionsPagedResponse> listVpnConnectionsSettings()
Returns the object with the settings used for calls to listVpnConnections.
toBuilder()
public EdgeContainerStubSettings.Builder toBuilder()
Returns a builder containing all the values of this settings class.
Overrides
updateClusterOperationSettings()
public OperationCallSettings<UpdateClusterRequest,Cluster,OperationMetadata> updateClusterOperationSettings()
Returns the object with the settings used for calls to updateCluster.
updateClusterSettings()
public UnaryCallSettings<UpdateClusterRequest,Operation> updateClusterSettings()
Returns the object with the settings used for calls to updateCluster.
updateNodePoolOperationSettings()
public OperationCallSettings<UpdateNodePoolRequest,NodePool,OperationMetadata> updateNodePoolOperationSettings()
Returns the object with the settings used for calls to updateNodePool.
updateNodePoolSettings()
public UnaryCallSettings<UpdateNodePoolRequest,Operation> updateNodePoolSettings()
Returns the object with the settings used for calls to updateNodePool.
upgradeClusterOperationSettings()
public OperationCallSettings<UpgradeClusterRequest,Cluster,OperationMetadata> upgradeClusterOperationSettings()
Returns the object with the settings used for calls to upgradeCluster.
upgradeClusterSettings()
public UnaryCallSettings<UpgradeClusterRequest,Operation> upgradeClusterSettings()
Returns the object with the settings used for calls to upgradeCluster.