Class EdgeContainerStubSettings (0.5.0)

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();
 

Inheritance

java.lang.Object > StubSettings > EdgeContainerStubSettings

Static Methods

defaultApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultCredentialsProviderBuilder()

public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder()

Returns a builder for the default credentials for this service.

Returns
TypeDescription
Builder

defaultExecutorProviderBuilder()

public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder()

Returns a builder for the default ExecutorProvider for this service.

Returns
TypeDescription
Builder

defaultGrpcApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

Returns a builder for the default gRPC ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultHttpJsonApiClientHeaderProviderBuilder()

public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder()
Returns
TypeDescription
Builder

defaultHttpJsonTransportProviderBuilder()

public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder()

Returns a builder for the default REST ChannelProvider for this service.

Returns
TypeDescription
Builder

defaultTransportChannelProvider()

public static TransportChannelProvider defaultTransportChannelProvider()
Returns

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultMtlsEndpoint()

public static String getDefaultMtlsEndpoint()

Returns the default mTLS service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static EdgeContainerStubSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns

newBuilder(ClientContext clientContext)

public static EdgeContainerStubSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns

newHttpJsonBuilder()

public static EdgeContainerStubSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns

Constructors

EdgeContainerStubSettings(EdgeContainerStubSettings.Builder settingsBuilder)

protected EdgeContainerStubSettings(EdgeContainerStubSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderEdgeContainerStubSettings.Builder

Methods

createClusterOperationSettings()

public OperationCallSettings<CreateClusterRequest,Cluster,OperationMetadata> createClusterOperationSettings()

Returns the object with the settings used for calls to createCluster.

Returns

createClusterSettings()

public UnaryCallSettings<CreateClusterRequest,Operation> createClusterSettings()

Returns the object with the settings used for calls to createCluster.

Returns

createNodePoolOperationSettings()

public OperationCallSettings<CreateNodePoolRequest,NodePool,OperationMetadata> createNodePoolOperationSettings()

Returns the object with the settings used for calls to createNodePool.

Returns

createNodePoolSettings()

public UnaryCallSettings<CreateNodePoolRequest,Operation> createNodePoolSettings()

Returns the object with the settings used for calls to createNodePool.

Returns

createStub()

public EdgeContainerStub createStub()
Returns
TypeDescription
EdgeContainerStub
Exceptions
TypeDescription
IOException

createVpnConnectionOperationSettings()

public OperationCallSettings<CreateVpnConnectionRequest,VpnConnection,OperationMetadata> createVpnConnectionOperationSettings()

Returns the object with the settings used for calls to createVpnConnection.

Returns

createVpnConnectionSettings()

public UnaryCallSettings<CreateVpnConnectionRequest,Operation> createVpnConnectionSettings()

Returns the object with the settings used for calls to createVpnConnection.

Returns

deleteClusterOperationSettings()

public OperationCallSettings<DeleteClusterRequest,Empty,OperationMetadata> deleteClusterOperationSettings()

Returns the object with the settings used for calls to deleteCluster.

Returns

deleteClusterSettings()

public UnaryCallSettings<DeleteClusterRequest,Operation> deleteClusterSettings()

Returns the object with the settings used for calls to deleteCluster.

Returns

deleteNodePoolOperationSettings()

public OperationCallSettings<DeleteNodePoolRequest,Empty,OperationMetadata> deleteNodePoolOperationSettings()

Returns the object with the settings used for calls to deleteNodePool.

Returns

deleteNodePoolSettings()

public UnaryCallSettings<DeleteNodePoolRequest,Operation> deleteNodePoolSettings()

Returns the object with the settings used for calls to deleteNodePool.

Returns

deleteVpnConnectionOperationSettings()

public OperationCallSettings<DeleteVpnConnectionRequest,Empty,OperationMetadata> deleteVpnConnectionOperationSettings()

Returns the object with the settings used for calls to deleteVpnConnection.

Returns

deleteVpnConnectionSettings()

public UnaryCallSettings<DeleteVpnConnectionRequest,Operation> deleteVpnConnectionSettings()

Returns the object with the settings used for calls to deleteVpnConnection.

Returns

generateAccessTokenSettings()

public UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse> generateAccessTokenSettings()

Returns the object with the settings used for calls to generateAccessToken.

Returns

getClusterSettings()

public UnaryCallSettings<GetClusterRequest,Cluster> getClusterSettings()

Returns the object with the settings used for calls to getCluster.

Returns

getMachineSettings()

public UnaryCallSettings<GetMachineRequest,Machine> getMachineSettings()

Returns the object with the settings used for calls to getMachine.

Returns

getNodePoolSettings()

public UnaryCallSettings<GetNodePoolRequest,NodePool> getNodePoolSettings()

Returns the object with the settings used for calls to getNodePool.

Returns

getVpnConnectionSettings()

public UnaryCallSettings<GetVpnConnectionRequest,VpnConnection> getVpnConnectionSettings()

Returns the object with the settings used for calls to getVpnConnection.

Returns

listClustersSettings()

public PagedCallSettings<ListClustersRequest,ListClustersResponse,EdgeContainerClient.ListClustersPagedResponse> listClustersSettings()

Returns the object with the settings used for calls to listClusters.

Returns

listMachinesSettings()

public PagedCallSettings<ListMachinesRequest,ListMachinesResponse,EdgeContainerClient.ListMachinesPagedResponse> listMachinesSettings()

Returns the object with the settings used for calls to listMachines.

Returns

listNodePoolsSettings()

public PagedCallSettings<ListNodePoolsRequest,ListNodePoolsResponse,EdgeContainerClient.ListNodePoolsPagedResponse> listNodePoolsSettings()

Returns the object with the settings used for calls to listNodePools.

Returns

listVpnConnectionsSettings()

public PagedCallSettings<ListVpnConnectionsRequest,ListVpnConnectionsResponse,EdgeContainerClient.ListVpnConnectionsPagedResponse> listVpnConnectionsSettings()

Returns the object with the settings used for calls to listVpnConnections.

Returns

toBuilder()

public EdgeContainerStubSettings.Builder toBuilder()

Returns a builder containing all the values of this settings class.

Returns Overrides

updateClusterOperationSettings()

public OperationCallSettings<UpdateClusterRequest,Cluster,OperationMetadata> updateClusterOperationSettings()

Returns the object with the settings used for calls to updateCluster.

Returns

updateClusterSettings()

public UnaryCallSettings<UpdateClusterRequest,Operation> updateClusterSettings()

Returns the object with the settings used for calls to updateCluster.

Returns

updateNodePoolOperationSettings()

public OperationCallSettings<UpdateNodePoolRequest,NodePool,OperationMetadata> updateNodePoolOperationSettings()

Returns the object with the settings used for calls to updateNodePool.

Returns

updateNodePoolSettings()

public UnaryCallSettings<UpdateNodePoolRequest,Operation> updateNodePoolSettings()

Returns the object with the settings used for calls to updateNodePool.

Returns