Class EdgeContainerSettings (0.26.0)

public class EdgeContainerSettings extends ClientSettings<EdgeContainerSettings>

Settings class to configure an instance of EdgeContainerClient.

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
 EdgeContainerSettings.Builder edgeContainerSettingsBuilder = EdgeContainerSettings.newBuilder();
 edgeContainerSettingsBuilder
     .getClusterSettings()
     .setRetrySettings(
         edgeContainerSettingsBuilder
             .getClusterSettings()
             .getRetrySettings()
             .toBuilder()
             .setTotalTimeout(Duration.ofSeconds(30))
             .build());
 EdgeContainerSettings edgeContainerSettings = edgeContainerSettingsBuilder.build();
 

Inheritance

java.lang.Object > ClientSettings > EdgeContainerSettings

Static Methods

create(EdgeContainerStubSettings stub)

public static final EdgeContainerSettings create(EdgeContainerStubSettings stub)
Parameter
NameDescription
stubEdgeContainerStubSettings
Returns
TypeDescription
EdgeContainerSettings
Exceptions
TypeDescription
IOException

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

defaultGrpcTransportProviderBuilder()

public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder()

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

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
TypeDescription
TransportChannelProvider

getDefaultEndpoint()

public static String getDefaultEndpoint()

Returns the default service endpoint.

Returns
TypeDescription
String

getDefaultServiceScopes()

public static List<String> getDefaultServiceScopes()

Returns the default service scopes.

Returns
TypeDescription
List<String>

newBuilder()

public static EdgeContainerSettings.Builder newBuilder()

Returns a new gRPC builder for this class.

Returns
TypeDescription
EdgeContainerSettings.Builder

newBuilder(ClientContext clientContext)

public static EdgeContainerSettings.Builder newBuilder(ClientContext clientContext)

Returns a new builder for this class.

Parameter
NameDescription
clientContextClientContext
Returns
TypeDescription
EdgeContainerSettings.Builder

newHttpJsonBuilder()

public static EdgeContainerSettings.Builder newHttpJsonBuilder()

Returns a new REST builder for this class.

Returns
TypeDescription
EdgeContainerSettings.Builder

Constructors

EdgeContainerSettings(EdgeContainerSettings.Builder settingsBuilder)

protected EdgeContainerSettings(EdgeContainerSettings.Builder settingsBuilder)
Parameter
NameDescription
settingsBuilderEdgeContainerSettings.Builder

Methods

createClusterOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<CreateClusterRequest,Cluster,OperationMetadata>

createClusterSettings()

public UnaryCallSettings<CreateClusterRequest,Operation> createClusterSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateClusterRequest,Operation>

createNodePoolOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<CreateNodePoolRequest,NodePool,OperationMetadata>

createNodePoolSettings()

public UnaryCallSettings<CreateNodePoolRequest,Operation> createNodePoolSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateNodePoolRequest,Operation>

createVpnConnectionOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<CreateVpnConnectionRequest,VpnConnection,OperationMetadata>

createVpnConnectionSettings()

public UnaryCallSettings<CreateVpnConnectionRequest,Operation> createVpnConnectionSettings()

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

Returns
TypeDescription
UnaryCallSettings<CreateVpnConnectionRequest,Operation>

deleteClusterOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<DeleteClusterRequest,Empty,OperationMetadata>

deleteClusterSettings()

public UnaryCallSettings<DeleteClusterRequest,Operation> deleteClusterSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteClusterRequest,Operation>

deleteNodePoolOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<DeleteNodePoolRequest,Empty,OperationMetadata>

deleteNodePoolSettings()

public UnaryCallSettings<DeleteNodePoolRequest,Operation> deleteNodePoolSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteNodePoolRequest,Operation>

deleteVpnConnectionOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<DeleteVpnConnectionRequest,Empty,OperationMetadata>

deleteVpnConnectionSettings()

public UnaryCallSettings<DeleteVpnConnectionRequest,Operation> deleteVpnConnectionSettings()

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

Returns
TypeDescription
UnaryCallSettings<DeleteVpnConnectionRequest,Operation>

generateAccessTokenSettings()

public UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse> generateAccessTokenSettings()

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

Returns
TypeDescription
UnaryCallSettings<GenerateAccessTokenRequest,GenerateAccessTokenResponse>

getClusterSettings()

public UnaryCallSettings<GetClusterRequest,Cluster> getClusterSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetClusterRequest,Cluster>

getMachineSettings()

public UnaryCallSettings<GetMachineRequest,Machine> getMachineSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetMachineRequest,Machine>

getNodePoolSettings()

public UnaryCallSettings<GetNodePoolRequest,NodePool> getNodePoolSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetNodePoolRequest,NodePool>

getVpnConnectionSettings()

public UnaryCallSettings<GetVpnConnectionRequest,VpnConnection> getVpnConnectionSettings()

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

Returns
TypeDescription
UnaryCallSettings<GetVpnConnectionRequest,VpnConnection>

listClustersSettings()

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

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

Returns
TypeDescription
PagedCallSettings<ListClustersRequest,ListClustersResponse,ListClustersPagedResponse>

listMachinesSettings()

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

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

Returns
TypeDescription
PagedCallSettings<ListMachinesRequest,ListMachinesResponse,ListMachinesPagedResponse>

listNodePoolsSettings()

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

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

Returns
TypeDescription
PagedCallSettings<ListNodePoolsRequest,ListNodePoolsResponse,ListNodePoolsPagedResponse>

listVpnConnectionsSettings()

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

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

Returns
TypeDescription
PagedCallSettings<ListVpnConnectionsRequest,ListVpnConnectionsResponse,ListVpnConnectionsPagedResponse>

toBuilder()

public EdgeContainerSettings.Builder toBuilder()

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

Returns
TypeDescription
EdgeContainerSettings.Builder
Overrides

updateClusterOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<UpdateClusterRequest,Cluster,OperationMetadata>

updateClusterSettings()

public UnaryCallSettings<UpdateClusterRequest,Operation> updateClusterSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateClusterRequest,Operation>

updateNodePoolOperationSettings()

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

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

Returns
TypeDescription
OperationCallSettings<UpdateNodePoolRequest,NodePool,OperationMetadata>

updateNodePoolSettings()

public UnaryCallSettings<UpdateNodePoolRequest,Operation> updateNodePoolSettings()

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

Returns
TypeDescription
UnaryCallSettings<UpdateNodePoolRequest,Operation>