Class ProfileServiceClient

public abstract class ProfileServiceClient

ProfileService client wrapper, for convenient use.

Inheritance

Object > ProfileServiceClient

Derived Types

Namespace

Google.Cloud.Talent.V4Beta1

Assembly

Google.Cloud.Talent.V4Beta1.dll

Remarks

A service that handles profile management, including profile CRUD, enumeration and search.

Properties

DefaultEndpoint

public static string DefaultEndpoint { get; }

The default endpoint for the ProfileService service, which is a host of "jobs.googleapis.com" and a port of 443.

Property Value
TypeDescription
String

DefaultScopes

public static IReadOnlyList<string> DefaultScopes { get; }

The default ProfileService scopes.

Property Value
TypeDescription
IReadOnlyList<String>
Remarks

GrpcClient

public virtual ProfileService.ProfileServiceClient GrpcClient { get; }

The underlying gRPC ProfileService client

Property Value
TypeDescription
ProfileService.ProfileServiceClient

Methods

Create()

public static ProfileServiceClient Create()

Synchronously creates a ProfileServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ProfileServiceClientBuilder.

Returns
TypeDescription
ProfileServiceClient

The created ProfileServiceClient.

CreateAsync(CancellationToken)

public static Task<ProfileServiceClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))

Asynchronously creates a ProfileServiceClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ProfileServiceClientBuilder.

Parameter
NameDescription
cancellationTokenCancellationToken

The CancellationToken to use while creating the client.

Returns
TypeDescription
Task<ProfileServiceClient>

The task representing the created ProfileServiceClient.

CreateProfile(CreateProfileRequest, CallSettings)

public virtual Profile CreateProfile(CreateProfileRequest request, CallSettings callSettings = null)

Creates and returns a new profile.

Parameters
NameDescription
requestCreateProfileRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Profile

The RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
CreateProfileRequest request = new CreateProfileRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Profile = new Profile(),
};
// Make the request
Profile response = profileServiceClient.CreateProfile(request);

CreateProfile(TenantName, Profile, CallSettings)

public virtual Profile CreateProfile(TenantName parent, Profile profile, CallSettings callSettings = null)

Creates and returns a new profile.

Parameters
NameDescription
parentTenantName

Required. The name of the tenant this profile belongs to.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

profileProfile

Required. The profile to be created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Profile

The RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
Profile profile = new Profile();
// Make the request
Profile response = profileServiceClient.CreateProfile(parent, profile);

CreateProfile(String, Profile, CallSettings)

public virtual Profile CreateProfile(string parent, Profile profile, CallSettings callSettings = null)

Creates and returns a new profile.

Parameters
NameDescription
parentString

Required. The name of the tenant this profile belongs to.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

profileProfile

Required. The profile to be created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Profile

The RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
Profile profile = new Profile();
// Make the request
Profile response = profileServiceClient.CreateProfile(parent, profile);

CreateProfileAsync(CreateProfileRequest, CallSettings)

public virtual Task<Profile> CreateProfileAsync(CreateProfileRequest request, CallSettings callSettings = null)

Creates and returns a new profile.

Parameters
NameDescription
requestCreateProfileRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
CreateProfileRequest request = new CreateProfileRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Profile = new Profile(),
};
// Make the request
Profile response = await profileServiceClient.CreateProfileAsync(request);

CreateProfileAsync(CreateProfileRequest, CancellationToken)

public virtual Task<Profile> CreateProfileAsync(CreateProfileRequest request, CancellationToken cancellationToken)

Creates and returns a new profile.

Parameters
NameDescription
requestCreateProfileRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
CreateProfileRequest request = new CreateProfileRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    Profile = new Profile(),
};
// Make the request
Profile response = await profileServiceClient.CreateProfileAsync(request);

CreateProfileAsync(TenantName, Profile, CallSettings)

public virtual Task<Profile> CreateProfileAsync(TenantName parent, Profile profile, CallSettings callSettings = null)

Creates and returns a new profile.

Parameters
NameDescription
parentTenantName

Required. The name of the tenant this profile belongs to.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

profileProfile

Required. The profile to be created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
Profile profile = new Profile();
// Make the request
Profile response = await profileServiceClient.CreateProfileAsync(parent, profile);

CreateProfileAsync(TenantName, Profile, CancellationToken)

public virtual Task<Profile> CreateProfileAsync(TenantName parent, Profile profile, CancellationToken cancellationToken)

Creates and returns a new profile.

Parameters
NameDescription
parentTenantName

Required. The name of the tenant this profile belongs to.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

profileProfile

Required. The profile to be created.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
Profile profile = new Profile();
// Make the request
Profile response = await profileServiceClient.CreateProfileAsync(parent, profile);

CreateProfileAsync(String, Profile, CallSettings)

public virtual Task<Profile> CreateProfileAsync(string parent, Profile profile, CallSettings callSettings = null)

Creates and returns a new profile.

Parameters
NameDescription
parentString

Required. The name of the tenant this profile belongs to.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

profileProfile

Required. The profile to be created.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
Profile profile = new Profile();
// Make the request
Profile response = await profileServiceClient.CreateProfileAsync(parent, profile);

CreateProfileAsync(String, Profile, CancellationToken)

public virtual Task<Profile> CreateProfileAsync(string parent, Profile profile, CancellationToken cancellationToken)

Creates and returns a new profile.

Parameters
NameDescription
parentString

Required. The name of the tenant this profile belongs to.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

profileProfile

Required. The profile to be created.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
Profile profile = new Profile();
// Make the request
Profile response = await profileServiceClient.CreateProfileAsync(parent, profile);

DeleteProfile(DeleteProfileRequest, CallSettings)

public virtual void DeleteProfile(DeleteProfileRequest request, CallSettings callSettings = null)

Deletes the specified profile. Prerequisite: The profile has no associated applications or assignments associated.

Parameters
NameDescription
requestDeleteProfileRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
DeleteProfileRequest request = new DeleteProfileRequest
{
    ProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
};
// Make the request
profileServiceClient.DeleteProfile(request);

DeleteProfile(ProfileName, CallSettings)

public virtual void DeleteProfile(ProfileName name, CallSettings callSettings = null)

Deletes the specified profile. Prerequisite: The profile has no associated applications or assignments associated.

Parameters
NameDescription
nameProfileName

Required. Resource name of the profile to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
ProfileName name = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
// Make the request
profileServiceClient.DeleteProfile(name);

DeleteProfile(String, CallSettings)

public virtual void DeleteProfile(string name, CallSettings callSettings = null)

Deletes the specified profile. Prerequisite: The profile has no associated applications or assignments associated.

Parameters
NameDescription
nameString

Required. Resource name of the profile to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
// Make the request
profileServiceClient.DeleteProfile(name);

DeleteProfileAsync(DeleteProfileRequest, CallSettings)

public virtual Task DeleteProfileAsync(DeleteProfileRequest request, CallSettings callSettings = null)

Deletes the specified profile. Prerequisite: The profile has no associated applications or assignments associated.

Parameters
NameDescription
requestDeleteProfileRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteProfileRequest request = new DeleteProfileRequest
{
    ProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
};
// Make the request
await profileServiceClient.DeleteProfileAsync(request);

DeleteProfileAsync(DeleteProfileRequest, CancellationToken)

public virtual Task DeleteProfileAsync(DeleteProfileRequest request, CancellationToken cancellationToken)

Deletes the specified profile. Prerequisite: The profile has no associated applications or assignments associated.

Parameters
NameDescription
requestDeleteProfileRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
DeleteProfileRequest request = new DeleteProfileRequest
{
    ProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
};
// Make the request
await profileServiceClient.DeleteProfileAsync(request);

DeleteProfileAsync(ProfileName, CallSettings)

public virtual Task DeleteProfileAsync(ProfileName name, CallSettings callSettings = null)

Deletes the specified profile. Prerequisite: The profile has no associated applications or assignments associated.

Parameters
NameDescription
nameProfileName

Required. Resource name of the profile to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
ProfileName name = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
// Make the request
await profileServiceClient.DeleteProfileAsync(name);

DeleteProfileAsync(ProfileName, CancellationToken)

public virtual Task DeleteProfileAsync(ProfileName name, CancellationToken cancellationToken)

Deletes the specified profile. Prerequisite: The profile has no associated applications or assignments associated.

Parameters
NameDescription
nameProfileName

Required. Resource name of the profile to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
ProfileName name = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
// Make the request
await profileServiceClient.DeleteProfileAsync(name);

DeleteProfileAsync(String, CallSettings)

public virtual Task DeleteProfileAsync(string name, CallSettings callSettings = null)

Deletes the specified profile. Prerequisite: The profile has no associated applications or assignments associated.

Parameters
NameDescription
nameString

Required. Resource name of the profile to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
// Make the request
await profileServiceClient.DeleteProfileAsync(name);

DeleteProfileAsync(String, CancellationToken)

public virtual Task DeleteProfileAsync(string name, CancellationToken cancellationToken)

Deletes the specified profile. Prerequisite: The profile has no associated applications or assignments associated.

Parameters
NameDescription
nameString

Required. Resource name of the profile to be deleted.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
// Make the request
await profileServiceClient.DeleteProfileAsync(name);

GetProfile(GetProfileRequest, CallSettings)

public virtual Profile GetProfile(GetProfileRequest request, CallSettings callSettings = null)

Gets the specified profile.

Parameters
NameDescription
requestGetProfileRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Profile

The RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
GetProfileRequest request = new GetProfileRequest
{
    ProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
};
// Make the request
Profile response = profileServiceClient.GetProfile(request);

GetProfile(ProfileName, CallSettings)

public virtual Profile GetProfile(ProfileName name, CallSettings callSettings = null)

Gets the specified profile.

Parameters
NameDescription
nameProfileName

Required. Resource name of the profile to get.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Profile

The RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
ProfileName name = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
// Make the request
Profile response = profileServiceClient.GetProfile(name);

GetProfile(String, CallSettings)

public virtual Profile GetProfile(string name, CallSettings callSettings = null)

Gets the specified profile.

Parameters
NameDescription
nameString

Required. Resource name of the profile to get.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Profile

The RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
// Make the request
Profile response = profileServiceClient.GetProfile(name);

GetProfileAsync(GetProfileRequest, CallSettings)

public virtual Task<Profile> GetProfileAsync(GetProfileRequest request, CallSettings callSettings = null)

Gets the specified profile.

Parameters
NameDescription
requestGetProfileRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
GetProfileRequest request = new GetProfileRequest
{
    ProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
};
// Make the request
Profile response = await profileServiceClient.GetProfileAsync(request);

GetProfileAsync(GetProfileRequest, CancellationToken)

public virtual Task<Profile> GetProfileAsync(GetProfileRequest request, CancellationToken cancellationToken)

Gets the specified profile.

Parameters
NameDescription
requestGetProfileRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
GetProfileRequest request = new GetProfileRequest
{
    ProfileName = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]"),
};
// Make the request
Profile response = await profileServiceClient.GetProfileAsync(request);

GetProfileAsync(ProfileName, CallSettings)

public virtual Task<Profile> GetProfileAsync(ProfileName name, CallSettings callSettings = null)

Gets the specified profile.

Parameters
NameDescription
nameProfileName

Required. Resource name of the profile to get.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
ProfileName name = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
// Make the request
Profile response = await profileServiceClient.GetProfileAsync(name);

GetProfileAsync(ProfileName, CancellationToken)

public virtual Task<Profile> GetProfileAsync(ProfileName name, CancellationToken cancellationToken)

Gets the specified profile.

Parameters
NameDescription
nameProfileName

Required. Resource name of the profile to get.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
ProfileName name = ProfileName.FromProjectTenantProfile("[PROJECT]", "[TENANT]", "[PROFILE]");
// Make the request
Profile response = await profileServiceClient.GetProfileAsync(name);

GetProfileAsync(String, CallSettings)

public virtual Task<Profile> GetProfileAsync(string name, CallSettings callSettings = null)

Gets the specified profile.

Parameters
NameDescription
nameString

Required. Resource name of the profile to get.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
// Make the request
Profile response = await profileServiceClient.GetProfileAsync(name);

GetProfileAsync(String, CancellationToken)

public virtual Task<Profile> GetProfileAsync(string name, CancellationToken cancellationToken)

Gets the specified profile.

Parameters
NameDescription
nameString

Required. Resource name of the profile to get.

The format is "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For example, "projects/foo/tenants/bar/profiles/baz".

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/tenants/[TENANT]/profiles/[PROFILE]";
// Make the request
Profile response = await profileServiceClient.GetProfileAsync(name);

ListProfiles(ListProfilesRequest, CallSettings)

public virtual PagedEnumerable<ListProfilesResponse, Profile> ListProfiles(ListProfilesRequest request, CallSettings callSettings = null)

Lists profiles by filter. The order is unspecified.

Parameters
NameDescription
requestListProfilesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListProfilesResponse, Profile>

A pageable sequence of Profile resources.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
ListProfilesRequest request = new ListProfilesRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    ReadMask = new FieldMask(),
    Filter = "",
};
// Make the request
PagedEnumerable<ListProfilesResponse, Profile> response = profileServiceClient.ListProfiles(request);

// Iterate over all response items, lazily performing RPCs as required
foreach (Profile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Profile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Profile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Profile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProfiles(TenantName, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListProfilesResponse, Profile> ListProfiles(TenantName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists profiles by filter. The order is unspecified.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the profile is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<Int32>

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListProfilesResponse, Profile>

A pageable sequence of Profile resources.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
// Make the request
PagedEnumerable<ListProfilesResponse, Profile> response = profileServiceClient.ListProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Profile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Profile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Profile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Profile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProfiles(String, String, Nullable<Int32>, CallSettings)

public virtual PagedEnumerable<ListProfilesResponse, Profile> ListProfiles(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists profiles by filter. The order is unspecified.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the profile is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<Int32>

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerable<ListProfilesResponse, Profile>

A pageable sequence of Profile resources.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
// Make the request
PagedEnumerable<ListProfilesResponse, Profile> response = profileServiceClient.ListProfiles(parent);

// Iterate over all response items, lazily performing RPCs as required
foreach (Profile item in response)
{
    // Do something with each item
    Console.WriteLine(item);
}

// Or iterate over pages (of server-defined size), performing one RPC per page
foreach (ListProfilesResponse page in response.AsRawResponses())
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Profile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
}

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Profile> singlePage = response.ReadPage(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Profile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProfilesAsync(ListProfilesRequest, CallSettings)

public virtual PagedAsyncEnumerable<ListProfilesResponse, Profile> ListProfilesAsync(ListProfilesRequest request, CallSettings callSettings = null)

Lists profiles by filter. The order is unspecified.

Parameters
NameDescription
requestListProfilesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListProfilesResponse, Profile>

A pageable asynchronous sequence of Profile resources.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
ListProfilesRequest request = new ListProfilesRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    ReadMask = new FieldMask(),
    Filter = "",
};
// Make the request
PagedAsyncEnumerable<ListProfilesResponse, Profile> response = profileServiceClient.ListProfilesAsync(request);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Profile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Profile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Profile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Profile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProfilesAsync(TenantName, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListProfilesResponse, Profile> ListProfilesAsync(TenantName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists profiles by filter. The order is unspecified.

Parameters
NameDescription
parentTenantName

Required. The resource name of the tenant under which the profile is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<Int32>

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListProfilesResponse, Profile>

A pageable asynchronous sequence of Profile resources.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
TenantName parent = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]");
// Make the request
PagedAsyncEnumerable<ListProfilesResponse, Profile> response = profileServiceClient.ListProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Profile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Profile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Profile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Profile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

ListProfilesAsync(String, String, Nullable<Int32>, CallSettings)

public virtual PagedAsyncEnumerable<ListProfilesResponse, Profile> ListProfilesAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)

Lists profiles by filter. The order is unspecified.

Parameters
NameDescription
parentString

Required. The resource name of the tenant under which the profile is created.

The format is "projects/{project_id}/tenants/{tenant_id}". For example, "projects/foo/tenants/bar".

pageTokenString

The token returned from the previous request. A value of null or an empty string retrieves the first page.

pageSizeNullable<Int32>

The size of page to request. The response will not be larger than this, but may be smaller. A value of null or 0 uses a server-defined page size.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerable<ListProfilesResponse, Profile>

A pageable asynchronous sequence of Profile resources.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]/tenants/[TENANT]";
// Make the request
PagedAsyncEnumerable<ListProfilesResponse, Profile> response = profileServiceClient.ListProfilesAsync(parent);

// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((Profile item) =>
{
    // Do something with each item
    Console.WriteLine(item);
});

// Or iterate over pages (of server-defined size), performing one RPC per page
await response.AsRawResponses().ForEachAsync((ListProfilesResponse page) =>
{
    // Do something with each page of items
    Console.WriteLine("A page of results:");
    foreach (Profile item in page)
    {
        // Do something with each item
        Console.WriteLine(item);
    }
});

// Or retrieve a single page of known size (unless it's the final page), performing as many RPCs as required
int pageSize = 10;
Page<Profile> singlePage = await response.ReadPageAsync(pageSize);
// Do something with the page of items
Console.WriteLine($"A page of {pageSize} results (unless it's the final page):");
foreach (Profile item in singlePage)
{
    // Do something with each item
    Console.WriteLine(item);
}
// Store the pageToken, for when the next page is required.
string nextPageToken = singlePage.NextPageToken;

SearchProfiles(SearchProfilesRequest, CallSettings)

public virtual SearchProfilesResponse SearchProfiles(SearchProfilesRequest request, CallSettings callSettings = null)

Searches for profiles within a tenant.

For example, search by raw queries "software engineer in Mountain View" or search by structured filters (location filter, education filter, etc.).

See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more information.

Parameters
NameDescription
requestSearchProfilesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SearchProfilesResponse

The RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
SearchProfilesRequest request = new SearchProfilesRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    RequestMetadata = new RequestMetadata(),
    ProfileQuery = new ProfileQuery(),
    PageSize = 0,
    PageToken = "",
    Offset = 0,
    DisableSpellCheck = false,
    OrderBy = "",
    CaseSensitiveSort = false,
    HistogramQueries =
    {
        new HistogramQuery(),
    },
    ResultSetId = "",
    StrictKeywordsSearch = false,
};
// Make the request
SearchProfilesResponse response = profileServiceClient.SearchProfiles(request);

SearchProfilesAsync(SearchProfilesRequest, CallSettings)

public virtual Task<SearchProfilesResponse> SearchProfilesAsync(SearchProfilesRequest request, CallSettings callSettings = null)

Searches for profiles within a tenant.

For example, search by raw queries "software engineer in Mountain View" or search by structured filters (location filter, education filter, etc.).

See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more information.

Parameters
NameDescription
requestSearchProfilesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<SearchProfilesResponse>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
SearchProfilesRequest request = new SearchProfilesRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    RequestMetadata = new RequestMetadata(),
    ProfileQuery = new ProfileQuery(),
    PageSize = 0,
    PageToken = "",
    Offset = 0,
    DisableSpellCheck = false,
    OrderBy = "",
    CaseSensitiveSort = false,
    HistogramQueries =
    {
        new HistogramQuery(),
    },
    ResultSetId = "",
    StrictKeywordsSearch = false,
};
// Make the request
SearchProfilesResponse response = await profileServiceClient.SearchProfilesAsync(request);

SearchProfilesAsync(SearchProfilesRequest, CancellationToken)

public virtual Task<SearchProfilesResponse> SearchProfilesAsync(SearchProfilesRequest request, CancellationToken cancellationToken)

Searches for profiles within a tenant.

For example, search by raw queries "software engineer in Mountain View" or search by structured filters (location filter, education filter, etc.).

See [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] for more information.

Parameters
NameDescription
requestSearchProfilesRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<SearchProfilesResponse>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
SearchProfilesRequest request = new SearchProfilesRequest
{
    ParentAsTenantName = TenantName.FromProjectTenant("[PROJECT]", "[TENANT]"),
    RequestMetadata = new RequestMetadata(),
    ProfileQuery = new ProfileQuery(),
    PageSize = 0,
    PageToken = "",
    Offset = 0,
    DisableSpellCheck = false,
    OrderBy = "",
    CaseSensitiveSort = false,
    HistogramQueries =
    {
        new HistogramQuery(),
    },
    ResultSetId = "",
    StrictKeywordsSearch = false,
};
// Make the request
SearchProfilesResponse response = await profileServiceClient.SearchProfilesAsync(request);

ShutdownDefaultChannelsAsync()

public static Task ShutdownDefaultChannelsAsync()

Shuts down any channels automatically created by Create() and CreateAsync(CancellationToken). Channels which weren't automatically created are not affected.

Returns
TypeDescription
Task

A task representing the asynchronous shutdown operation.

Remarks

After calling this method, further calls to Create() and CreateAsync(CancellationToken) will create new channels, which could in turn be shut down by another call to this method.

UpdateProfile(Profile, CallSettings)

public virtual Profile UpdateProfile(Profile profile, CallSettings callSettings = null)

Updates the specified profile and returns the updated result.

Parameters
NameDescription
profileProfile

Required. Profile to be updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Profile

The RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
Profile profile = new Profile();
// Make the request
Profile response = profileServiceClient.UpdateProfile(profile);

UpdateProfile(UpdateProfileRequest, CallSettings)

public virtual Profile UpdateProfile(UpdateProfileRequest request, CallSettings callSettings = null)

Updates the specified profile and returns the updated result.

Parameters
NameDescription
requestUpdateProfileRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Profile

The RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = ProfileServiceClient.Create();
// Initialize request argument(s)
UpdateProfileRequest request = new UpdateProfileRequest
{
    Profile = new Profile(),
    UpdateMask = new FieldMask(),
};
// Make the request
Profile response = profileServiceClient.UpdateProfile(request);

UpdateProfileAsync(Profile, CallSettings)

public virtual Task<Profile> UpdateProfileAsync(Profile profile, CallSettings callSettings = null)

Updates the specified profile and returns the updated result.

Parameters
NameDescription
profileProfile

Required. Profile to be updated.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
Profile profile = new Profile();
// Make the request
Profile response = await profileServiceClient.UpdateProfileAsync(profile);

UpdateProfileAsync(Profile, CancellationToken)

public virtual Task<Profile> UpdateProfileAsync(Profile profile, CancellationToken cancellationToken)

Updates the specified profile and returns the updated result.

Parameters
NameDescription
profileProfile

Required. Profile to be updated.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
Profile profile = new Profile();
// Make the request
Profile response = await profileServiceClient.UpdateProfileAsync(profile);

UpdateProfileAsync(UpdateProfileRequest, CallSettings)

public virtual Task<Profile> UpdateProfileAsync(UpdateProfileRequest request, CallSettings callSettings = null)

Updates the specified profile and returns the updated result.

Parameters
NameDescription
requestUpdateProfileRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateProfileRequest request = new UpdateProfileRequest
{
    Profile = new Profile(),
    UpdateMask = new FieldMask(),
};
// Make the request
Profile response = await profileServiceClient.UpdateProfileAsync(request);

UpdateProfileAsync(UpdateProfileRequest, CancellationToken)

public virtual Task<Profile> UpdateProfileAsync(UpdateProfileRequest request, CancellationToken cancellationToken)

Updates the specified profile and returns the updated result.

Parameters
NameDescription
requestUpdateProfileRequest

The request object containing all of the parameters for the API call.

cancellationTokenCancellationToken

A CancellationToken to use for this RPC.

Returns
TypeDescription
Task<Profile>

A Task containing the RPC response.

Example
// Create client
ProfileServiceClient profileServiceClient = await ProfileServiceClient.CreateAsync();
// Initialize request argument(s)
UpdateProfileRequest request = new UpdateProfileRequest
{
    Profile = new Profile(),
    UpdateMask = new FieldMask(),
};
// Make the request
Profile response = await profileServiceClient.UpdateProfileAsync(request);