public abstract class ConversationProfilesClient
ConversationProfiles client wrapper, for convenient use.
Derived Types
Namespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Remarks
Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
Properties
DefaultEndpoint
public static string DefaultEndpoint { get; }
The default endpoint for the ConversationProfiles service, which is a host of "dialogflow.googleapis.com" and a port of 443.
Property Value | |
---|---|
Type | Description |
String |
DefaultScopes
public static IReadOnlyList<string> DefaultScopes { get; }
The default ConversationProfiles scopes.
Property Value | |
---|---|
Type | Description |
IReadOnlyList<String> |
The default ConversationProfiles scopes are:
GrpcClient
public virtual ConversationProfiles.ConversationProfilesClient GrpcClient { get; }
The underlying gRPC ConversationProfiles client
Property Value | |
---|---|
Type | Description |
ConversationProfiles.ConversationProfilesClient |
Methods
Create()
public static ConversationProfilesClient Create()
Synchronously creates a ConversationProfilesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ConversationProfilesClientBuilder.
Returns | |
---|---|
Type | Description |
ConversationProfilesClient | The created ConversationProfilesClient. |
CreateAsync(CancellationToken)
public static Task<ConversationProfilesClient> CreateAsync(CancellationToken cancellationToken = default(CancellationToken))
Asynchronously creates a ConversationProfilesClient using the default credentials, endpoint and settings. To specify custom credentials or other settings, use ConversationProfilesClientBuilder.
Parameter | |
---|---|
Name | Description |
cancellationToken | CancellationToken The CancellationToken to use while creating the client. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfilesClient> | The task representing the created ConversationProfilesClient. |
CreateConversationProfile(LocationName, ConversationProfile, CallSettings)
public virtual ConversationProfile CreateConversationProfile(LocationName parent, ConversationProfile conversationProfile, CallSettings callSettings = null)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project to create a conversation profile for.
Format: |
conversationProfile | ConversationProfile Required. The conversation profile to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ConversationProfile | The RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = conversationProfilesClient.CreateConversationProfile(parent, conversationProfile);
CreateConversationProfile(ProjectName, ConversationProfile, CallSettings)
public virtual ConversationProfile CreateConversationProfile(ProjectName parent, ConversationProfile conversationProfile, CallSettings callSettings = null)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The project to create a conversation profile for.
Format: |
conversationProfile | ConversationProfile Required. The conversation profile to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ConversationProfile | The RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = conversationProfilesClient.CreateConversationProfile(parent, conversationProfile);
CreateConversationProfile(CreateConversationProfileRequest, CallSettings)
public virtual ConversationProfile CreateConversationProfile(CreateConversationProfileRequest request, CallSettings callSettings = null)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
request | CreateConversationProfileRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ConversationProfile | The RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
CreateConversationProfileRequest request = new CreateConversationProfileRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
ConversationProfile = new ConversationProfile(),
};
// Make the request
ConversationProfile response = conversationProfilesClient.CreateConversationProfile(request);
CreateConversationProfile(String, ConversationProfile, CallSettings)
public virtual ConversationProfile CreateConversationProfile(string parent, ConversationProfile conversationProfile, CallSettings callSettings = null)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project to create a conversation profile for.
Format: |
conversationProfile | ConversationProfile Required. The conversation profile to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ConversationProfile | The RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = conversationProfilesClient.CreateConversationProfile(parent, conversationProfile);
CreateConversationProfileAsync(LocationName, ConversationProfile, CallSettings)
public virtual Task<ConversationProfile> CreateConversationProfileAsync(LocationName parent, ConversationProfile conversationProfile, CallSettings callSettings = null)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project to create a conversation profile for.
Format: |
conversationProfile | ConversationProfile Required. The conversation profile to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);
CreateConversationProfileAsync(LocationName, ConversationProfile, CancellationToken)
public virtual Task<ConversationProfile> CreateConversationProfileAsync(LocationName parent, ConversationProfile conversationProfile, CancellationToken cancellationToken)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project to create a conversation profile for.
Format: |
conversationProfile | ConversationProfile Required. The conversation profile to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);
CreateConversationProfileAsync(ProjectName, ConversationProfile, CallSettings)
public virtual Task<ConversationProfile> CreateConversationProfileAsync(ProjectName parent, ConversationProfile conversationProfile, CallSettings callSettings = null)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The project to create a conversation profile for.
Format: |
conversationProfile | ConversationProfile Required. The conversation profile to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);
CreateConversationProfileAsync(ProjectName, ConversationProfile, CancellationToken)
public virtual Task<ConversationProfile> CreateConversationProfileAsync(ProjectName parent, ConversationProfile conversationProfile, CancellationToken cancellationToken)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The project to create a conversation profile for.
Format: |
conversationProfile | ConversationProfile Required. The conversation profile to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);
CreateConversationProfileAsync(CreateConversationProfileRequest, CallSettings)
public virtual Task<ConversationProfile> CreateConversationProfileAsync(CreateConversationProfileRequest request, CallSettings callSettings = null)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
request | CreateConversationProfileRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
CreateConversationProfileRequest request = new CreateConversationProfileRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
ConversationProfile = new ConversationProfile(),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(request);
CreateConversationProfileAsync(CreateConversationProfileRequest, CancellationToken)
public virtual Task<ConversationProfile> CreateConversationProfileAsync(CreateConversationProfileRequest request, CancellationToken cancellationToken)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
request | CreateConversationProfileRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
CreateConversationProfileRequest request = new CreateConversationProfileRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
ConversationProfile = new ConversationProfile(),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(request);
CreateConversationProfileAsync(String, ConversationProfile, CallSettings)
public virtual Task<ConversationProfile> CreateConversationProfileAsync(string parent, ConversationProfile conversationProfile, CallSettings callSettings = null)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project to create a conversation profile for.
Format: |
conversationProfile | ConversationProfile Required. The conversation profile to create. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);
CreateConversationProfileAsync(String, ConversationProfile, CancellationToken)
public virtual Task<ConversationProfile> CreateConversationProfileAsync(string parent, ConversationProfile conversationProfile, CancellationToken cancellationToken)
Creates a conversation profile in the specified project.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project to create a conversation profile for.
Format: |
conversationProfile | ConversationProfile Required. The conversation profile to create. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
ConversationProfile conversationProfile = new ConversationProfile();
// Make the request
ConversationProfile response = await conversationProfilesClient.CreateConversationProfileAsync(parent, conversationProfile);
DeleteConversationProfile(ConversationProfileName, CallSettings)
public virtual void DeleteConversationProfile(ConversationProfileName name, CallSettings callSettings = null)
Deletes the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | ConversationProfileName Required. The name of the conversation profile to delete.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
conversationProfilesClient.DeleteConversationProfile(name);
DeleteConversationProfile(DeleteConversationProfileRequest, CallSettings)
public virtual void DeleteConversationProfile(DeleteConversationProfileRequest request, CallSettings callSettings = null)
Deletes the specified conversation profile.
Parameters | |
---|---|
Name | Description |
request | DeleteConversationProfileRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
DeleteConversationProfileRequest request = new DeleteConversationProfileRequest
{
ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
conversationProfilesClient.DeleteConversationProfile(request);
DeleteConversationProfile(String, CallSettings)
public virtual void DeleteConversationProfile(string name, CallSettings callSettings = null)
Deletes the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the conversation profile to delete.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
conversationProfilesClient.DeleteConversationProfile(name);
DeleteConversationProfileAsync(ConversationProfileName, CallSettings)
public virtual Task DeleteConversationProfileAsync(ConversationProfileName name, CallSettings callSettings = null)
Deletes the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | ConversationProfileName Required. The name of the conversation profile to delete.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(name);
DeleteConversationProfileAsync(ConversationProfileName, CancellationToken)
public virtual Task DeleteConversationProfileAsync(ConversationProfileName name, CancellationToken cancellationToken)
Deletes the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | ConversationProfileName Required. The name of the conversation profile to delete.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(name);
DeleteConversationProfileAsync(DeleteConversationProfileRequest, CallSettings)
public virtual Task DeleteConversationProfileAsync(DeleteConversationProfileRequest request, CallSettings callSettings = null)
Deletes the specified conversation profile.
Parameters | |
---|---|
Name | Description |
request | DeleteConversationProfileRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
DeleteConversationProfileRequest request = new DeleteConversationProfileRequest
{
ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(request);
DeleteConversationProfileAsync(DeleteConversationProfileRequest, CancellationToken)
public virtual Task DeleteConversationProfileAsync(DeleteConversationProfileRequest request, CancellationToken cancellationToken)
Deletes the specified conversation profile.
Parameters | |
---|---|
Name | Description |
request | DeleteConversationProfileRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
DeleteConversationProfileRequest request = new DeleteConversationProfileRequest
{
ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(request);
DeleteConversationProfileAsync(String, CallSettings)
public virtual Task DeleteConversationProfileAsync(string name, CallSettings callSettings = null)
Deletes the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the conversation profile to delete.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(name);
DeleteConversationProfileAsync(String, CancellationToken)
public virtual Task DeleteConversationProfileAsync(string name, CancellationToken cancellationToken)
Deletes the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | String Required. The name of the conversation profile to delete.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
await conversationProfilesClient.DeleteConversationProfileAsync(name);
GetConversationProfile(ConversationProfileName, CallSettings)
public virtual ConversationProfile GetConversationProfile(ConversationProfileName name, CallSettings callSettings = null)
Retrieves the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | ConversationProfileName Required. The resource name of the conversation profile.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ConversationProfile | The RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
ConversationProfile response = conversationProfilesClient.GetConversationProfile(name);
GetConversationProfile(GetConversationProfileRequest, CallSettings)
public virtual ConversationProfile GetConversationProfile(GetConversationProfileRequest request, CallSettings callSettings = null)
Retrieves the specified conversation profile.
Parameters | |
---|---|
Name | Description |
request | GetConversationProfileRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ConversationProfile | The RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
GetConversationProfileRequest request = new GetConversationProfileRequest
{
ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
ConversationProfile response = conversationProfilesClient.GetConversationProfile(request);
GetConversationProfile(String, CallSettings)
public virtual ConversationProfile GetConversationProfile(string name, CallSettings callSettings = null)
Retrieves the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the conversation profile.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ConversationProfile | The RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
ConversationProfile response = conversationProfilesClient.GetConversationProfile(name);
GetConversationProfileAsync(ConversationProfileName, CallSettings)
public virtual Task<ConversationProfile> GetConversationProfileAsync(ConversationProfileName name, CallSettings callSettings = null)
Retrieves the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | ConversationProfileName Required. The resource name of the conversation profile.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(name);
GetConversationProfileAsync(ConversationProfileName, CancellationToken)
public virtual Task<ConversationProfile> GetConversationProfileAsync(ConversationProfileName name, CancellationToken cancellationToken)
Retrieves the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | ConversationProfileName Required. The resource name of the conversation profile.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfileName name = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]");
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(name);
GetConversationProfileAsync(GetConversationProfileRequest, CallSettings)
public virtual Task<ConversationProfile> GetConversationProfileAsync(GetConversationProfileRequest request, CallSettings callSettings = null)
Retrieves the specified conversation profile.
Parameters | |
---|---|
Name | Description |
request | GetConversationProfileRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
GetConversationProfileRequest request = new GetConversationProfileRequest
{
ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(request);
GetConversationProfileAsync(GetConversationProfileRequest, CancellationToken)
public virtual Task<ConversationProfile> GetConversationProfileAsync(GetConversationProfileRequest request, CancellationToken cancellationToken)
Retrieves the specified conversation profile.
Parameters | |
---|---|
Name | Description |
request | GetConversationProfileRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
GetConversationProfileRequest request = new GetConversationProfileRequest
{
ConversationProfileName = ConversationProfileName.FromProjectConversationProfile("[PROJECT]", "[CONVERSATION_PROFILE]"),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(request);
GetConversationProfileAsync(String, CallSettings)
public virtual Task<ConversationProfile> GetConversationProfileAsync(string name, CallSettings callSettings = null)
Retrieves the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the conversation profile.
Format: |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(name);
GetConversationProfileAsync(String, CancellationToken)
public virtual Task<ConversationProfile> GetConversationProfileAsync(string name, CancellationToken cancellationToken)
Retrieves the specified conversation profile.
Parameters | |
---|---|
Name | Description |
name | String Required. The resource name of the conversation profile.
Format: |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string name = "projects/[PROJECT]/conversationProfiles/[CONVERSATION_PROFILE]";
// Make the request
ConversationProfile response = await conversationProfilesClient.GetConversationProfileAsync(name);
ListConversationProfiles(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfiles(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Returns the list of all conversation profiles in the specified project.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project to list all conversation profiles from.
Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> | A pageable sequence of ConversationProfile resources. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ConversationProfile 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 (ListConversationProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;
ListConversationProfiles(ProjectName, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfiles(ProjectName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Returns the list of all conversation profiles in the specified project.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The project to list all conversation profiles from.
Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> | A pageable sequence of ConversationProfile resources. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ConversationProfile 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 (ListConversationProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;
ListConversationProfiles(ListConversationProfilesRequest, CallSettings)
public virtual PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfiles(ListConversationProfilesRequest request, CallSettings callSettings = null)
Returns the list of all conversation profiles in the specified project.
Parameters | |
---|---|
Name | Description |
request | ListConversationProfilesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> | A pageable sequence of ConversationProfile resources. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ListConversationProfilesRequest request = new ListConversationProfilesRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfiles(request);
// Iterate over all response items, lazily performing RPCs as required
foreach (ConversationProfile 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 (ListConversationProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;
ListConversationProfiles(String, String, Nullable<Int32>, CallSettings)
public virtual PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfiles(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Returns the list of all conversation profiles in the specified project.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project to list all conversation profiles from.
Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> | A pageable sequence of ConversationProfile resources. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfiles(parent);
// Iterate over all response items, lazily performing RPCs as required
foreach (ConversationProfile 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 (ListConversationProfilesResponse page in response.AsRawResponses())
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;
ListConversationProfilesAsync(LocationName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfilesAsync(LocationName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Returns the list of all conversation profiles in the specified project.
Parameters | |
---|---|
Name | Description |
parent | LocationName Required. The project to list all conversation profiles from.
Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> | A pageable asynchronous sequence of ConversationProfile resources. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
LocationName parent = LocationName.FromProjectLocation("[PROJECT]", "[LOCATION]");
// Make the request
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversationProfile 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((ListConversationProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;
ListConversationProfilesAsync(ProjectName, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfilesAsync(ProjectName parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Returns the list of all conversation profiles in the specified project.
Parameters | |
---|---|
Name | Description |
parent | ProjectName Required. The project to list all conversation profiles from.
Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> | A pageable asynchronous sequence of ConversationProfile resources. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ProjectName parent = ProjectName.FromProject("[PROJECT]");
// Make the request
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversationProfile 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((ListConversationProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;
ListConversationProfilesAsync(ListConversationProfilesRequest, CallSettings)
public virtual PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfilesAsync(ListConversationProfilesRequest request, CallSettings callSettings = null)
Returns the list of all conversation profiles in the specified project.
Parameters | |
---|---|
Name | Description |
request | ListConversationProfilesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> | A pageable asynchronous sequence of ConversationProfile resources. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ListConversationProfilesRequest request = new ListConversationProfilesRequest
{
ParentAsProjectName = ProjectName.FromProject("[PROJECT]"),
};
// Make the request
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfilesAsync(request);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversationProfile 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((ListConversationProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;
ListConversationProfilesAsync(String, String, Nullable<Int32>, CallSettings)
public virtual PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> ListConversationProfilesAsync(string parent, string pageToken = null, int? pageSize = default(int? ), CallSettings callSettings = null)
Returns the list of all conversation profiles in the specified project.
Parameters | |
---|---|
Name | Description |
parent | String Required. The project to list all conversation profiles from.
Format: |
pageToken | String The token returned from the previous request. A value of |
pageSize | Nullable<Int32> The size of page to request. The response will not be larger than this, but may be smaller. A value of
|
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> | A pageable asynchronous sequence of ConversationProfile resources. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
string parent = "projects/[PROJECT]";
// Make the request
PagedAsyncEnumerable<ListConversationProfilesResponse, ConversationProfile> response = conversationProfilesClient.ListConversationProfilesAsync(parent);
// Iterate over all response items, lazily performing RPCs as required
await response.ForEachAsync((ConversationProfile 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((ListConversationProfilesResponse page) =>
{
// Do something with each page of items
Console.WriteLine("A page of results:");
foreach (ConversationProfile 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<ConversationProfile> 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 (ConversationProfile 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;
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 | |
---|---|
Type | Description |
Task | A task representing the asynchronous shutdown operation. |
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.
UpdateConversationProfile(ConversationProfile, FieldMask, CallSettings)
public virtual ConversationProfile UpdateConversationProfile(ConversationProfile conversationProfile, FieldMask updateMask, CallSettings callSettings = null)
Updates the specified conversation profile.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
conversationProfile | ConversationProfile Required. The conversation profile to update. |
updateMask | FieldMask Required. The mask to control which fields to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ConversationProfile | The RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
ConversationProfile conversationProfile = new ConversationProfile();
FieldMask updateMask = new FieldMask();
// Make the request
ConversationProfile response = conversationProfilesClient.UpdateConversationProfile(conversationProfile, updateMask);
UpdateConversationProfile(UpdateConversationProfileRequest, CallSettings)
public virtual ConversationProfile UpdateConversationProfile(UpdateConversationProfileRequest request, CallSettings callSettings = null)
Updates the specified conversation profile.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
request | UpdateConversationProfileRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ConversationProfile | The RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = ConversationProfilesClient.Create();
// Initialize request argument(s)
UpdateConversationProfileRequest request = new UpdateConversationProfileRequest
{
ConversationProfile = new ConversationProfile(),
UpdateMask = new FieldMask(),
};
// Make the request
ConversationProfile response = conversationProfilesClient.UpdateConversationProfile(request);
UpdateConversationProfileAsync(ConversationProfile, FieldMask, CallSettings)
public virtual Task<ConversationProfile> UpdateConversationProfileAsync(ConversationProfile conversationProfile, FieldMask updateMask, CallSettings callSettings = null)
Updates the specified conversation profile.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
conversationProfile | ConversationProfile Required. The conversation profile to update. |
updateMask | FieldMask Required. The mask to control which fields to update. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfile conversationProfile = new ConversationProfile();
FieldMask updateMask = new FieldMask();
// Make the request
ConversationProfile response = await conversationProfilesClient.UpdateConversationProfileAsync(conversationProfile, updateMask);
UpdateConversationProfileAsync(ConversationProfile, FieldMask, CancellationToken)
public virtual Task<ConversationProfile> UpdateConversationProfileAsync(ConversationProfile conversationProfile, FieldMask updateMask, CancellationToken cancellationToken)
Updates the specified conversation profile.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
conversationProfile | ConversationProfile Required. The conversation profile to update. |
updateMask | FieldMask Required. The mask to control which fields to update. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
ConversationProfile conversationProfile = new ConversationProfile();
FieldMask updateMask = new FieldMask();
// Make the request
ConversationProfile response = await conversationProfilesClient.UpdateConversationProfileAsync(conversationProfile, updateMask);
UpdateConversationProfileAsync(UpdateConversationProfileRequest, CallSettings)
public virtual Task<ConversationProfile> UpdateConversationProfileAsync(UpdateConversationProfileRequest request, CallSettings callSettings = null)
Updates the specified conversation profile.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
request | UpdateConversationProfileRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
UpdateConversationProfileRequest request = new UpdateConversationProfileRequest
{
ConversationProfile = new ConversationProfile(),
UpdateMask = new FieldMask(),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.UpdateConversationProfileAsync(request);
UpdateConversationProfileAsync(UpdateConversationProfileRequest, CancellationToken)
public virtual Task<ConversationProfile> UpdateConversationProfileAsync(UpdateConversationProfileRequest request, CancellationToken cancellationToken)
Updates the specified conversation profile.
[ConversationProfile.CreateTime][] and [ConversationProfile.UpdateTime][] aren't populated in the response. You can retrieve them via [GetConversationProfile][google.cloud.dialogflow.v2.ConversationProfiles.GetConversationProfile] API.
Parameters | |
---|---|
Name | Description |
request | UpdateConversationProfileRequest The request object containing all of the parameters for the API call. |
cancellationToken | CancellationToken A CancellationToken to use for this RPC. |
Returns | |
---|---|
Type | Description |
Task<ConversationProfile> | A Task containing the RPC response. |
// Create client
ConversationProfilesClient conversationProfilesClient = await ConversationProfilesClient.CreateAsync();
// Initialize request argument(s)
UpdateConversationProfileRequest request = new UpdateConversationProfileRequest
{
ConversationProfile = new ConversationProfile(),
UpdateMask = new FieldMask(),
};
// Make the request
ConversationProfile response = await conversationProfilesClient.UpdateConversationProfileAsync(request);