This repository was archived by the owner on Dec 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,11 +90,23 @@ public static AgentName of(String project) {
9090 }
9191
9292 @ BetaApi ("The static create methods are not stable yet and may be changed in the future." )
93+ public static AgentName ofProjectName (String project ) {
94+ return newBuilder ().setProject (project ).build ();
95+ }
96+
97+ /** @deprecated Please use {@link #ofProjectName()} instead */
98+ @ Deprecated
9399 public static AgentName ofProjectAgentName (String project ) {
94100 return newBuilder ().setProject (project ).build ();
95101 }
96102
97103 @ BetaApi ("The static create methods are not stable yet and may be changed in the future." )
104+ public static AgentName ofProjectLocationName (String project , String location ) {
105+ return newProjectLocationAgentBuilder ().setProject (project ).setLocation (location ).build ();
106+ }
107+
108+ /** @deprecated Please use {@link #ofProjectLocationName()} instead */
109+ @ Deprecated
98110 public static AgentName ofProjectLocationAgentName (String project , String location ) {
99111 return newProjectLocationAgentBuilder ().setProject (project ).setLocation (location ).build ();
100112 }
You can’t perform that action at this time.
0 commit comments