/// <summary>Snippet for CreateSessionEntityTypeAsync</summary> public async Task CreateSessionEntityTypeAsync() { // Snippet: CreateSessionEntityTypeAsync(string, SessionEntityType, CallSettings) // Additional: CreateSessionEntityTypeAsync(string, SessionEntityType, CancellationToken) // Create client SessionEntityTypesClient sessionEntityTypesClient = await SessionEntityTypesClient.CreateAsync(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/sessions/[SESSION]"; SessionEntityType sessionEntityType = new SessionEntityType(); // Make the request SessionEntityType response = await sessionEntityTypesClient.CreateSessionEntityTypeAsync(parent, sessionEntityType); // End snippet }
/// <summary>Snippet for CreateSessionEntityTypeAsync</summary> public async Task CreateSessionEntityTypeAsync() { // Snippet: CreateSessionEntityTypeAsync(SessionName,SessionEntityType,CallSettings) // Additional: CreateSessionEntityTypeAsync(SessionName,SessionEntityType,CancellationToken) // Create client SessionEntityTypesClient sessionEntityTypesClient = await SessionEntityTypesClient.CreateAsync(); // Initialize request argument(s) SessionName parent = new SessionName("[PROJECT]", "[SESSION]"); SessionEntityType sessionEntityType = new SessionEntityType(); // Make the request SessionEntityType response = await sessionEntityTypesClient.CreateSessionEntityTypeAsync(parent, sessionEntityType); // End snippet }
/// <summary>Snippet for CreateSessionEntityTypeAsync</summary> public async Task CreateSessionEntityTypeAsync() { // Snippet: CreateSessionEntityTypeAsync(string, SessionEntityType, CallSettings) // Additional: CreateSessionEntityTypeAsync(string, SessionEntityType, CancellationToken) // Create client SessionEntityTypesClient sessionEntityTypesClient = await SessionEntityTypesClient.CreateAsync(); // Initialize request argument(s) string parent = ""; SessionEntityType sessionEntityType = new SessionEntityType(); // Make the request SessionEntityType response = await sessionEntityTypesClient.CreateSessionEntityTypeAsync(parent, sessionEntityType); // End snippet }
/// <summary>Snippet for CreateSessionEntityTypeAsync</summary> public async Task CreateSessionEntityTypeAsync_RequestObject() { // Snippet: CreateSessionEntityTypeAsync(CreateSessionEntityTypeRequest,CallSettings) // Additional: CreateSessionEntityTypeAsync(CreateSessionEntityTypeRequest,CancellationToken) // Create client SessionEntityTypesClient sessionEntityTypesClient = await SessionEntityTypesClient.CreateAsync(); // Initialize request argument(s) CreateSessionEntityTypeRequest request = new CreateSessionEntityTypeRequest { ParentAsSessionName = new SessionName("[PROJECT]", "[SESSION]"), SessionEntityType = new SessionEntityType(), }; // Make the request SessionEntityType response = await sessionEntityTypesClient.CreateSessionEntityTypeAsync(request); // End snippet }