Skip to content
This repository was archived by the owner on Sep 27, 2023. It is now read-only.
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
11 changes: 1 addition & 10 deletions src/main/java/com/google/api/resourcenames/ResourceName.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,4 @@

/** An interface that generated resource name types must implement. */
@BetaApi
public interface ResourceName {

/**
* The ResourceNameType of the resource name object.
*
* @deprecated With Oneof types being converted to use inheritance, this is no longer necessary.
*/
@Deprecated
public ResourceNameType getType();
}
public interface ResourceName {}
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
import com.google.api.core.BetaApi;

/**
* An interface that resource name types must implement. A ResourceNameType class is required for
* any class that implements {@link ResourceName}.
* An interface that resource name types used to have to implement. A ResourceNameType class was
* required for any class that implements {@link ResourceName}.
*
* @deprecated With Oneof types being converted to use inheritance, this is no longer necessary.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ private UntypedResourceName(String rawValue) {
this.rawValue = Preconditions.checkNotNull(rawValue);
}

/**
* @deprecated use {@link #of(ResourceName)} instead.
*/
@Deprecated
public static UntypedResourceName from(ResourceName resourceName) {
return new UntypedResourceName(resourceName.toString());
}

public static UntypedResourceName of(ResourceName resourceName) {
return new UntypedResourceName(resourceName.toString());
}
Expand All @@ -68,16 +60,6 @@ public static boolean isParsableFrom(String formattedString) {
return true;
}

/*
* @deprecated With Oneof types being converted to use inheritance, this is
* no longer necessary.
*/
@Override
@Deprecated
public ResourceNameType getType() {
return UntypedResourceNameType.instance();
}

@Override
public String toString() {
return rawValue;
Expand Down

This file was deleted.