Skip to content
This repository was archived by the owner on Dec 3, 2023. It is now read-only.

Commit 3d85b8a

Browse files
authored
feat: deprecate ofProjectLocationAgentName and ofProjectAgentName (#622)
1 parent 36cb748 commit 3d85b8a

3 files changed

Lines changed: 43 additions & 1220 deletions

File tree

proto-google-cloud-dialogflow-v2beta1/src/main/java/com/google/cloud/dialogflow/v2beta1/AgentName.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)