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

Commit

Permalink
feat: deprecate ofProjectLocationAgentName and ofProjectAgentName (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
Neenu1995 committed Aug 9, 2021
1 parent 36cb748 commit 3d85b8a
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1,220 deletions.
Expand Up @@ -90,11 +90,23 @@ public static AgentName of(String project) {
}

@BetaApi("The static create methods are not stable yet and may be changed in the future.")
public static AgentName ofProjectName(String project) {
return newBuilder().setProject(project).build();
}

/** @deprecated Please use {@link #ofProjectName()} instead */
@Deprecated
public static AgentName ofProjectAgentName(String project) {
return newBuilder().setProject(project).build();
}

@BetaApi("The static create methods are not stable yet and may be changed in the future.")
public static AgentName ofProjectLocationName(String project, String location) {
return newProjectLocationAgentBuilder().setProject(project).setLocation(location).build();
}

/** @deprecated Please use {@link #ofProjectLocationName()} instead */
@Deprecated
public static AgentName ofProjectLocationAgentName(String project, String location) {
return newProjectLocationAgentBuilder().setProject(project).setLocation(location).build();
}
Expand Down

0 comments on commit 3d85b8a

Please sign in to comment.