/// <summary>Snippet for CreateFlow</summary> public void CreateFlow() { // Snippet: CreateFlow(string, Flow, CallSettings) // Create client FlowsClient flowsClient = FlowsClient.Create(); // Initialize request argument(s) string parent = "projects/[PROJECT]/locations/[LOCATION]/agents/[AGENT]"; Flow flow = new Flow(); // Make the request Flow response = flowsClient.CreateFlow(parent, flow); // End snippet }
/// <summary>Snippet for CreateFlow</summary> public void CreateFlowResourceNames() { // Snippet: CreateFlow(AgentName, Flow, CallSettings) // Create client FlowsClient flowsClient = FlowsClient.Create(); // Initialize request argument(s) AgentName parent = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]"); Flow flow = new Flow(); // Make the request Flow response = flowsClient.CreateFlow(parent, flow); // End snippet }
/// <summary>Snippet for CreateFlow</summary> public void CreateFlowRequestObject() { // Snippet: CreateFlow(CreateFlowRequest, CallSettings) // Create client FlowsClient flowsClient = FlowsClient.Create(); // Initialize request argument(s) CreateFlowRequest request = new CreateFlowRequest { ParentAsAgentName = AgentName.FromProjectLocationAgent("[PROJECT]", "[LOCATION]", "[AGENT]"), Flow = new Flow(), LanguageCode = "", }; // Make the request Flow response = flowsClient.CreateFlow(request); // End snippet }