public static GcsPath fromResourceName(String name){
  Matcher m=GCS_RESOURCE_NAME.matcher(name);
  checkArgument(m.matches(),"Invalid GCS resource name: %s",name);
  return new GcsPath(null,m.group("BUCKET"),m.group("OBJECT"));
}

public static GcsPath fromResourceName ( String name ) { Matcher m = GCS_RESOURCE_NAME . matcher ( name ) ; checkArgument ( m . matches ( ) , "Invalid GCS resource name: %s" , name ) ; return new GcsPath ( null , m . group ( "BUCKET" ) , m . group ( "OBJECT" ) ) ; }
creates a gcspath from a oneplatform resource name in string form .
