@Generated("by gapic-generator-java")
Package com.google.devtools.cloudprofiler.v2
A client to Cloud Profiler API
The interfaces provided are listed below, along with usage samples.
======================= ProfilerServiceClient =======================
Service Description: Manage the collection of continuous profiling data provided by profiling agents running in the cloud or by an offline provider of profiling data.
General guidelines:
- Profiles for a single deployment must be created in ascending time order.
- Profiles can be created in either online or offline mode, see below.
Sample for ProfilerServiceClient:
// 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
try (ProfilerServiceClient profilerServiceClient = ProfilerServiceClient.create()) {
CreateProfileRequest request =
CreateProfileRequest.newBuilder()
.setParent(ProjectName.of("[PROJECT]").toString())
.setDeployment(Deployment.newBuilder().build())
.addAllProfileType(new ArrayList<ProfileType>())
.build();
Profile response = profilerServiceClient.createProfile(request);
}
-
Interface Summary Interface Description CreateOfflineProfileRequestOrBuilder CreateProfileRequestOrBuilder DeploymentOrBuilder ProfileOrBuilder ProfilerServiceGrpc.AsyncService Manage the collection of continuous profiling data provided by profiling agents running in the cloud or by an offline provider of profiling data.UpdateProfileRequestOrBuilder -
Class Summary Class Description CreateOfflineProfileRequest CreateOfflineProfileRequest describes a profile resource offline creation request.CreateOfflineProfileRequest.Builder CreateOfflineProfileRequest describes a profile resource offline creation request.CreateProfileRequest CreateProfileRequest describes a profile resource online creation request.CreateProfileRequest.Builder CreateProfileRequest describes a profile resource online creation request.Deployment Deployment contains the deployment identification information.Deployment.Builder Deployment contains the deployment identification information.Profile Profile resource.Profile.Builder Profile resource.ProfilerProto ProfilerServiceClient Service Description: Manage the collection of continuous profiling data provided by profiling agents running in the cloud or by an offline provider of profiling data.ProfilerServiceGrpc Manage the collection of continuous profiling data provided by profiling agents running in the cloud or by an offline provider of profiling data.ProfilerServiceGrpc.ProfilerServiceBlockingStub A stub to allow clients to do synchronous rpc calls to service ProfilerService.ProfilerServiceGrpc.ProfilerServiceFutureStub A stub to allow clients to do ListenableFuture-style rpc calls to service ProfilerService.ProfilerServiceGrpc.ProfilerServiceImplBase Base class for the server implementation of the service ProfilerService.ProfilerServiceGrpc.ProfilerServiceStub A stub to allow clients to do asynchronous rpc calls to service ProfilerService.ProfilerServiceSettings Settings class to configure an instance ofProfilerServiceClient
.ProfilerServiceSettings.Builder Builder for ProfilerServiceSettings.ProjectName ProjectName.Builder Builder for projects/{project}.UpdateProfileRequest UpdateProfileRequest contains the profile to update.UpdateProfileRequest.Builder UpdateProfileRequest contains the profile to update. -
Enum Summary Enum Description ProfileType ProfileType is type of profiling data.