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

feat: deprecate ofProjectLocationAgentName and ofProjectAgentName #622

Merged
merged 5 commits into from
Aug 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Loading