/// <summary>Snippet for CreateSessionEntityType</summary>
 public void CreateSessionEntityType()
 {
     // Snippet: CreateSessionEntityType(SessionName,SessionEntityType,CallSettings)
     // Create client
     SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.Create();
     // Initialize request argument(s)
     SessionName       parent            = new SessionName("[PROJECT]", "[SESSION]");
     SessionEntityType sessionEntityType = new SessionEntityType();
     // Make the request
     SessionEntityType response = sessionEntityTypesClient.CreateSessionEntityType(parent, sessionEntityType);
     // End snippet
 }
Example #2
0
 /// <summary>Snippet for CreateSessionEntityType</summary>
 public void CreateSessionEntityType()
 {
     // Snippet: CreateSessionEntityType(string, SessionEntityType, CallSettings)
     // Create client
     SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.Create();
     // Initialize request argument(s)
     string            parent            = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]/sessions/[SESSION]";
     SessionEntityType sessionEntityType = new SessionEntityType();
     // Make the request
     SessionEntityType response = sessionEntityTypesClient.CreateSessionEntityType(parent, sessionEntityType);
     // End snippet
 }
Example #3
0
 /// <summary>Snippet for CreateSessionEntityType</summary>
 public void CreateSessionEntityTypeResourceNames()
 {
     // Snippet: CreateSessionEntityType(SessionName, SessionEntityType, CallSettings)
     // Create client
     SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.Create();
     // Initialize request argument(s)
     SessionName       parent            = SessionName.FromProjectLocationAgentSession("[PROJECT]", "[LOCATION]", "[AGENT]", "[SESSION]");
     SessionEntityType sessionEntityType = new SessionEntityType();
     // Make the request
     SessionEntityType response = sessionEntityTypesClient.CreateSessionEntityType(parent, sessionEntityType);
     // End snippet
 }
Example #4
0
 /// <summary>Snippet for CreateSessionEntityType</summary>
 public void CreateSessionEntityType()
 {
     // Snippet: CreateSessionEntityType(string, SessionEntityType, CallSettings)
     // Create client
     SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.Create();
     // Initialize request argument(s)
     string            parent            = "";
     SessionEntityType sessionEntityType = new SessionEntityType();
     // Make the request
     SessionEntityType response = sessionEntityTypesClient.CreateSessionEntityType(parent, sessionEntityType);
     // End snippet
 }
 /// <summary>Snippet for CreateSessionEntityType</summary>
 public void CreateSessionEntityType_RequestObject()
 {
     // Snippet: CreateSessionEntityType(CreateSessionEntityTypeRequest,CallSettings)
     // Create client
     SessionEntityTypesClient sessionEntityTypesClient = SessionEntityTypesClient.Create();
     // Initialize request argument(s)
     CreateSessionEntityTypeRequest request = new CreateSessionEntityTypeRequest
     {
         ParentAsSessionName = new SessionName("[PROJECT]", "[SESSION]"),
         SessionEntityType   = new SessionEntityType(),
     };
     // Make the request
     SessionEntityType response = sessionEntityTypesClient.CreateSessionEntityType(request);
     // End snippet
 }