Class ProfilerService.ProfilerServiceClient (2.0.0)

public class ProfilerServiceClient : ClientBase<ProfilerService.ProfilerServiceClient>

Client for ProfilerService

Inheritance

Object > ClientBase > ClientBase<ProfilerService.ProfilerServiceClient> > ProfilerService.ProfilerServiceClient

Namespace

Google.Cloud.Profiler.V2

Assembly

Google.Cloud.Profiler.V2.dll

Constructors

ProfilerServiceClient()

protected ProfilerServiceClient()

Protected parameterless constructor to allow creation of test doubles.

ProfilerServiceClient(CallInvoker)

public ProfilerServiceClient(CallInvoker callInvoker)

Creates a new client for ProfilerService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ProfilerServiceClient(ChannelBase)

public ProfilerServiceClient(ChannelBase channel)

Creates a new client for ProfilerService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ProfilerServiceClient(ClientBase.ClientBaseConfiguration)

protected ProfilerServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

CreateOfflineProfile(CreateOfflineProfileRequest, CallOptions)

public virtual Profile CreateOfflineProfile(CreateOfflineProfileRequest request, CallOptions options)

CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it.

Parameters
NameDescription
requestCreateOfflineProfileRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Profile

The response received from the server.

CreateOfflineProfile(CreateOfflineProfileRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Profile CreateOfflineProfile(CreateOfflineProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it.

Parameters
NameDescription
requestCreateOfflineProfileRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Profile

The response received from the server.

CreateOfflineProfileAsync(CreateOfflineProfileRequest, CallOptions)

public virtual AsyncUnaryCall<Profile> CreateOfflineProfileAsync(CreateOfflineProfileRequest request, CallOptions options)

CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it.

Parameters
NameDescription
requestCreateOfflineProfileRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Profile>

The call object.

CreateOfflineProfileAsync(CreateOfflineProfileRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Profile> CreateOfflineProfileAsync(CreateOfflineProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

CreateOfflineProfile creates a new profile resource in the offline mode. The client provides the profile to create along with the profile bytes, the server records it.

Parameters
NameDescription
requestCreateOfflineProfileRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Profile>

The call object.

CreateProfile(CreateProfileRequest, CallOptions)

public virtual Profile CreateProfile(CreateProfileRequest request, CallOptions options)

CreateProfile creates a new profile resource in the online mode.

The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available.

The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named "google.rpc.retryinfo-bin".

Parameters
NameDescription
requestCreateProfileRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Profile

The response received from the server.

CreateProfile(CreateProfileRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Profile CreateProfile(CreateProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

CreateProfile creates a new profile resource in the online mode.

The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available.

The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named "google.rpc.retryinfo-bin".

Parameters
NameDescription
requestCreateProfileRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Profile

The response received from the server.

CreateProfileAsync(CreateProfileRequest, CallOptions)

public virtual AsyncUnaryCall<Profile> CreateProfileAsync(CreateProfileRequest request, CallOptions options)

CreateProfile creates a new profile resource in the online mode.

The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available.

The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named "google.rpc.retryinfo-bin".

Parameters
NameDescription
requestCreateProfileRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Profile>

The call object.

CreateProfileAsync(CreateProfileRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Profile> CreateProfileAsync(CreateProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

CreateProfile creates a new profile resource in the online mode.

The server ensures that the new profiles are created at a constant rate per deployment, so the creation request may hang for some time until the next profile session is available.

The request may fail with ABORTED error if the creation is not available within ~1m, the response will indicate the duration of the backoff the client should take before attempting creating a profile again. The backoff duration is returned in google.rpc.RetryInfo extension on the response status. To a gRPC client, the extension will be return as a binary-serialized proto in the trailing metadata item named "google.rpc.retryinfo-bin".

Parameters
NameDescription
requestCreateProfileRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Profile>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

protected override ProfilerService.ProfilerServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
ProfilerService.ProfilerServiceClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Profiler.V2.ProfilerService.ProfilerServiceClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

UpdateProfile(UpdateProfileRequest, CallOptions)

public virtual Profile UpdateProfile(UpdateProfileRequest request, CallOptions options)

UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation.

Parameters
NameDescription
requestUpdateProfileRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Profile

The response received from the server.

UpdateProfile(UpdateProfileRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual Profile UpdateProfile(UpdateProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation.

Parameters
NameDescription
requestUpdateProfileRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Profile

The response received from the server.

UpdateProfileAsync(UpdateProfileRequest, CallOptions)

public virtual AsyncUnaryCall<Profile> UpdateProfileAsync(UpdateProfileRequest request, CallOptions options)

UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation.

Parameters
NameDescription
requestUpdateProfileRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<Profile>

The call object.

UpdateProfileAsync(UpdateProfileRequest, Metadata, Nullable<DateTime>, CancellationToken)

public virtual AsyncUnaryCall<Profile> UpdateProfileAsync(UpdateProfileRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(CancellationToken))

UpdateProfile updates the profile bytes and labels on the profile resource created in the online mode. Updating the bytes for profiles created in the offline mode is currently not supported: the profile content must be provided at the time of the profile creation.

Parameters
NameDescription
requestUpdateProfileRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineNullable<DateTime>

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCall<Profile>

The call object.